package cn.itsource.basic.mapper;

import cn.itsource.basic.query.BaseQuery;
import cn.itsource.org.domain.Department;
import cn.itsource.org.query.DepartmentQuery;

import java.util.List;
/*



 */
public interface BaseMapper<T> {
    void save(T t);
    void update(T t);
    void delete(Long id);
    T loadById(Long id);
    List<T> loadAll();
    //查询总条数
    Long count(BaseQuery query);
    //当前页的数据
    List<T> page(BaseQuery query);
    void patchDelete(Long[] ids);
}
